<h1>Listing labours</h1>
<table>
  <tr>
    <th>id</th>
    <th>Category</th>
    <th>User</th>
    <th>Name</th>
    <th>dosage</th>
    <th>prix_littre</th>
    <th>cout_ha_passage</th>
  </tr>

<% for labour in @labours %>
  <tr>
    <td><%=h labour.id %></td>
    <td><%=h labour.category.name %></td>
    <td><%=h labour.user.name %></td>
    <td><%=h labour.name %></td>
    <td><%=h labour.dosage %></td>
    <td><%=h labour.prix_littre %></td>
    <td><%=h labour.cout_ha_passage %></td>
    <td><%= link_to 'Show', labour %></td>
    <td><%= link_to 'Edit', edit_labour_path(labour) %></td>
    <td><%= link_to 'Destroy', labour, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New labour', new_labour_path %>

<br>
